-- GENERATED SPELL FOR [Chieftain Zul'Marosh] --


function spell0_15407(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15407', 655, 1)
end

function spell1_15407(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15407', 30318, 1)
end

function Sorts_15407(pUnit, Event)
local choix_sorts_15407 = math.random(0, 1)
if choix_sorts_15407 == 0 then
pUnit:RegisterEvent('spell0_15407', 1, 1)
end
if choix_sorts_15407 == 1 then
pUnit:RegisterEvent('spell1_15407', 1, 1)
end
end

function mob15407_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15407', math.random(1500, 3000), 1)
end

function mob15407_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15407_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15407_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15407, 1, 'mob15407_Action')
RegisterUnitEvent(15407, 2, 'mob15407_Leave')
RegisterUnitEvent(15407, 3, 'mob15407_Kill')
RegisterUnitEvent(15407, 4, 'mob15407_Die')
